<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Document</title>
		<link rel="stylesheet" href="dist/css/swiper.min.css">
		<style>
			.swiper-container {
			    width: 300px;
			    height: 500px;
			    border: 5px solid black;
			}  

			img {
				width: 300px;
				height: 500px;
			}

		</style>
	</head>
	<body>

		<div class="swiper-container">
		    <div class="swiper-wrapper">
		        <div class="swiper-slide"><img src="1.jpg" alt=""></div>
		        <div class="swiper-slide"><img src="2.jpeg" alt=""></div>
		        <div class="swiper-slide"><img src="3.jpg" alt=""></div>
		    </div>
		    <!-- 如果需要分页器 -->
		    <div class="swiper-pagination"></div>
		    
		    <!-- 如果需要导航按钮 -->
		    <div class="swiper-button-prev"></div>
		    <div class="swiper-button-next"></div>
		    
		    <!-- 如果需要滚动条 -->
		    <div class="swiper-scrollbar"></div>
		</div>
		
	</body>
</html>
<script src="dist/js/swiper.min.js"></script>
<script>        
	  var mySwiper = new Swiper ('.swiper-container', {
	    direction: 'vertical',
	    loop: true,
	    autoplay: 2000,
	    
	    // 如果需要分页器
	    pagination: '.swiper-pagination',
	    
	    // 如果需要前进后退按钮
	    nextButton: '.swiper-button-next',
	    prevButton: '.swiper-button-prev',
	    
	    // 如果需要滚动条
	    scrollbar: '.swiper-scrollbar',
	    effect: "flip"
	  });        
  </script>